package com.ftg.learn.chapter08.isa.static1;

/**
 * @author kangjx
 * @createTime 2023/1/6
 */
public class LearnStatic {

    int a = 9;

    static int b = 13;

    public static void main(String[] args) {
        LearnStatic ls = new LearnStatic();
        ls.a = 99;
        LearnStatic.b = 133;
        System.out.println(ls.a);
        System.out.println(LearnStatic.b);

        System.out.println("另外一个");
        LearnStatic ls1 = new LearnStatic();
        System.out.println(ls1.a);
        System.out.println(LearnStatic.b);

        //设计一个java类，里面要有一个方法，可以求出当前这个类让别人实例化了几次

    }

}
